@import "../common-var";
.layout-module_relational {
  width: 100%;
  height: 100%;
  margin: 48px 0 40px 0;
  border: 1px solid @border-color_normal;
  border-radius: 6px;

  .relational-header {
    padding: 0 16px;
    font-weight: 500;
    font-size: 16px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px 6px 0 0;

    .head-wrapper {
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .head-title {
        margin-left: 5px;
        padding-bottom: 0;
        padding-top: 3px;
        font-size: 16px;
        font-weight: 500;
        line-height: 35px;

        span {
          cursor: pointer;

          &:hover {
            color: var(--title-color);
          }
        }

        span:last-child {
          margin-left: 20px;
        }

        .active {
          font-weight: 700;
          color: var(--font-color);
        }
      }
    }
  }

  .relational-body {
    margin-bottom: 0 !important;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;

    /deep/.ivu-table {
      background-color: unset;
    }

    /deep/ .ivu-table-header {
      table > thead > tr > th {
        background-color: var(--on-theme-bg-color);
        height: 50px;
        border-color: @border-color_normal;

        .ivu-table-cell {
          span {
            color: var(--font-color);
            font-weight: normal;
          }
        }
      }
    }

    /deep/ .ivu-table-body {
      overflow-x: hidden !important;

      table > tbody {
        tr {
          td {
            height: 60px;
            background: unset;
            border-color: @border-color_normal;

            .ivu-table-cell {
              color: var(--title-color);

              span {
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }

              .user-show-info {
                display: flex;
                align-items: center;

                .username {
                  margin-left: 10px;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                }
              }

              button {
                width: 90px;
                background: unset;
                color: var(--title-color);
                border-color: @border-color_normal;

                &:hover {
                  color: @primary-color;
                  border-color: @primary-color;
                }
              }
            }
          }

          td:nth-child(1) {
            .ivu-table-cell {
              cursor: pointer;
            }
          }

          td:first-child {
            .ivu-table-cell {
              color: var(--font-color);
            }
          }
        }

        .ivu-table-row-hover td {
          background: var(--dropdown-item-hover);
        }

      }
    }

    /deep/ .ivu-table-tip {
      overflow-x: hidden;
      margin: 50px 0;

      table > tbody > tr > td {
        border: unset;
        background: unset;

        span {
          color: var(--title-color);
        }
      }
    }

    /deep/ .ivu-table:before {
      display: none;
    }
  }

  .relationship-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 32px;
    margin: 13px;

    .pagination-prefix {
      margin-right: 20px;
    }

    /deep/ .pagination {

      .page-item {
        border-radius: 4px;
        margin-right: 8px;

        .page-link {
          padding: 0;
          line-height: 32px;
          width: 32px;
          margin: 0 1px;
          text-align: center;
          border-radius: 4px;
          color: var(--title-color);
          border-color: @border-color_normal;
          background: unset;

          &:focus {
            outline: 0;
            box-shadow: none;
          }

          .iconfont {
            font-size: 14px;
          }
        }
      }

      .disabled:not([role="separator"]) > .page-link {
        cursor: not-allowed;
        pointer-events: unset;
        color: @not-allowed;
        border-color: @not-allowed;
      }

      .page-item.active .page-link, .page-item:not(.disabled):hover .page-link {
        z-index: 3;
        color: #00b96b;
        background-color: unset;
        border-color: #00b96b;
      }
    }
  }
}

